#include <bits/stdc++.h>
using namespace std;
class person{
    public:
    void operator()(int n,string str){
        cout<<n<<" "<<str<<endl;
    }
};
int main()
{
    person p;
    p(1,"a");//用类对象调用仿函数
    person()(2,"b");//用类的匿名对象调用仿函数
    person& e=p;
    e(3,"c");//用对象的引用调用仿函数
    return 0;
}